package com.uniapp.uniappboot.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.Optional;

/**
 * 
 * @TableName quanzi
 */
public class Quanzi implements Serializable {
    public Quanzi(Long id, String quanziType, String quanziDesc, Date createTime, Date updateTime) {
        this.id = id;
        this.quanziType = quanziType;
        this.quanziDesc = quanziDesc;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Quanzi() {
    }

    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String quanziType;

    /**
     * 
     */
    private String quanziDesc;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;


    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getQuanziType() {
        return quanziType;
    }

    /**
     * 
     */
    public void setQuanziType(String quanziType) {
        this.quanziType = quanziType;
    }

    /**
     * 
     */
    public String getQuanziDesc() {
        return Optional.ofNullable(quanziDesc).orElse("中国");
    }

    /**
     * 
     */
    public void setQuanziDesc(String quanziDesc) {
        this.quanziDesc = quanziDesc;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}